<template>
    <div class="order">
        <div v-if="$route.query.orderId">
            <Detail/>
        </div>
        <div v-else>
            <AllOrder/>
        </div>
    </div>
</template>

<script setup lang="ts" name="Order">
    import {useRoute} from "vue-router";
    import Detail from "@/pages/user/content/order/Detail.vue";
    import AllOrder from "@/pages/user/content/order/AllOrder.vue";

    let $route = useRoute();
</script>

<style scoped>

</style>